<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>

    <div id="app">
        {{hello}}

        <span v-text="text"></span>
        <span v-html="html"></span>
    </div>

    <script src="./node_modules//vue/dist/vue.js"></script>
    <script>
        var app = new Vue({
            el: '#app',
            data: {
                hello: '你好',
                text: 'text',
                html:'<h4>112212121</h4>'
            },
            methods: {},
            beforeCreate() {
                console.log("beforeCreate");
            },
            created() {
                //实例创建后的函数
                console.log("created");
                console.log(this);
            },
            beforeMount() {
                console.log("beforeMount");
            },
            mounted() {
                console.log("mounted");
            },
            beforeUpdate() {
                console.log("beforeUpdate");
            },
            updated() {
                console.log("updated");
            },
            beforeDestroy() {
                console.log("beforeDestroy");
            },
            destroyed() {
                console.log("destroyed");
            }
        });
    </script>
</body>

</html>